Skip to content

[DE-544] Retriable batch reads #254

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

apetenchea
Copy link
Member

Purpose

Added allow_retry query parameter, making it possible to retry fetching the latest batch from a cursor. This corresponds to the allowRetry parameter from the REST API.

In case the latest fetch failed, cursor.retry() yields the latest batch that is cached. Note that if fetch succeeds, retry works just the same as a normal fetch, yielding the next batch.

Tests
Two new cursor tests have been added.

@apetenchea apetenchea self-assigned this Jul 10, 2023
@apetenchea apetenchea changed the title Feature/de 544 retriable batch reads [DE-544] Retriable batch reads Jul 10, 2023
@CryptoNinjaGeek CryptoNinjaGeek merged commit b82de8c into main Jul 11, 2023
@CryptoNinjaGeek CryptoNinjaGeek deleted the feature/de-544-retriable-batch-reads branch July 11, 2023 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants